from typing import List


class Solution:
    def removeDuplicates(self, nums: List[int]) -> int:
        nums[:] = list(set(nums))[:]
        nums.sort()
        print(nums)
        return len(nums)

#需要去修改引用类型的 地址的内容， 没意思
lll = Solution()
llist2=[1, 1, 2, 2, 3, 4, 5, 5, 6, 7, 8, 9]
print(lll.removeDuplicates(llist2))

print(llist2)
